/**
 * 
 */
package id.web.faisalabdillah.xtimesheet.services;

import id.web.faisalabdillah.xtimesheet.domain.User;

import java.util.List;

/**
 * @author faitz
 *
 */
public interface IUserService {
	public boolean insert(User user);

	public boolean update(User user);

	public boolean remove(String user);
	
	public User findById(String id);

	public int sizeAll();
	
	public List<User> listAll();

	public List<User> listAllPaged(int first, int max);

	public List<User> searchByName(String name);
	
	public int searchByNameSize(String name);
	
	public List<User> searchByNamePaged(String name,int first,int max);
}
